package day5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Zheng {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int k=0;
        while (true){
            System.out.printf("请输入一个正整数:");
            k=in.nextInt();
            if(k>0)
                break;
            System.out.println("输入错误");
        }
        System.out.println(k);

        int r=0;
        while (k!=0){
            r=r*10+k%10;
            k/=10;
        }
        r+=1024;
        System.out.println(r);
    }
}
